From: Prateek Saxena Date: Fri, 31 Oct 2014 09:40:16 +0000 (+0530) Subject: SpecialSearch: Use CSS instead of cellpadding and cellspacing X-Git-Tag: 1.31.0-rc.0~13412^2 X-Git-Url: http://git.cyclocoop.org/%7D%7Cconcat%7B?a=commitdiff_plain;h=273a6860fb4350ad9cdb8ce11b16211ed33a56f4;p=lhc%2Fweb%2Fwiklou.git SpecialSearch: Use CSS instead of cellpadding and cellspacing Bug: 72458 Change-Id: I976a7046b5a1b3b5cd87241e283c87bcaac93c3f --- diff --git a/includes/specials/SpecialSearch.php b/includes/specials/SpecialSearch.php index 895f1e86b7..b1baf67db4 100644 --- a/includes/specials/SpecialSearch.php +++ b/includes/specials/SpecialSearch.php @@ -895,10 +895,7 @@ class SpecialSearch extends SpecialPage { // be arranged nicely while still accommodating different screen widths $namespaceTables = ''; for ( $i = 0; $i < $numRows; $i += 4 ) { - $namespaceTables .= Xml::openElement( - 'table', - array( 'cellpadding' => 0, 'cellspacing' => 0 ) - ); + $namespaceTables .= Xml::openElement( 'table' ); for ( $j = $i; $j < $i + 4 && $j < $numRows; $j++ ) { $namespaceTables .= Xml::tags( 'tr', null, $rows[$j] ); diff --git a/resources/src/mediawiki.special/mediawiki.special.search.css b/resources/src/mediawiki.special/mediawiki.special.search.css index ef9550779b..4b6c14e0fa 100644 --- a/resources/src/mediawiki.special/mediawiki.special.search.css +++ b/resources/src/mediawiki.special/mediawiki.special.search.css @@ -106,9 +106,10 @@ fieldset#mw-searchoptions div#mw-search-togglebox input { fieldset#mw-searchoptions table { float: left; margin-right: 3em; + border-collapse: collapse; } fieldset#mw-searchoptions table td { - padding-right: 1em; + padding: 0 1em 0 0; white-space: nowrap; } fieldset#mw-searchoptions div.divider {